import request from '@/router/axios';

//根据项目和产品id 获取客户名称和客户图号
export const getCustomerAndDrawingNo = (params) => {
    return request({
        url: '/api/hg-public/operatinginstructions/getCustomerAndDrawingNo',
        method: 'get',
        params: {
            ...params,
        }
    })
}

//根据产品和工序id 获取上道工序和下道工序
export const getPreviousAndNextProcedure = (params) => {
    return request({
        url: '/api/hg-public/prdprocedure/getPreviousAndNextProcedure',
        method: 'get',
        params: {
            ...params,
        }
    })
}
//根据工序id 获取设备
export const getEquipmentByProcedureId = (params) => {
    return request({
        url: '/api/hg-public/operatinginstructions/getEquipmentByProcedureId',
        method: 'get',
        params: {
            ...params,
        }
    })
}
//根据产品和工序id 获取控制计划相关数据
export const getControlPlanByProcedureId = (params) => {
    return request({
        url: '/api/hg-public/controlplan/getControlPlanByProcedureId',
        method: 'get',
        params: {
            ...params,
        }
    })
}